package com.wangdao.wechatmall.service.admin;

import com.wangdao.wechatmall.mapper.PermissionMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author ZhangXiao on 2021/7/11
 */
@Service
public class PermissionServiceImpl implements PermissionService {

    @Autowired
    PermissionMapper permissionMapper;
    @Override
    public List<String> selectPermissionByRoleId(Integer roleId) {
        List<String> strings = permissionMapper.selectPermissionByRoleId(roleId);

        return strings;
    }
}
